//package com.fan.websocket;
//
//import com.fan.websocket.CustomerWebSocketServer;
//import org.java_websocket.server.WebSocketServer;
//import org.springframework.beans.factory.annotation.Configurable;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.stereotype.Component;
//
//import java.net.InetSocketAddress;
//
///**
// * 初始化websocket服务器
// *
// * @Description:
// * @Author: Fan
// * @Date: 2021/7/12 0:14
// * @Version 1.0
// **/
//@Configuration
//public class WebSocketConfig {
//
//    @Bean
//    public CustomerWebSocketServer customerWebSocketServer() {
//        String host = "localhost";
//        int port = 8887;
//        CustomerWebSocketServer customerWebSocketServer = new CustomerWebSocketServer(new InetSocketAddress(host, port));
//        customerWebSocketServer.start();
//        return customerWebSocketServer;
//    }
//}